﻿namespace Cmn
{
    using System;
    using System.Web;

    public class Request
    {
        public static string Get(string varName)
        {
            string str = "";
            if (HttpContext.Current.Request.QueryString[varName] != null)
            {
                str = HttpContext.Current.Request.QueryString[varName].ToString();
            }
            return Safe.sqlStr(str);
        }

        public static string GetF(string varName)
        {
            string str = "";
            if (HttpContext.Current.Request.Form[varName] != null)
            {
                str = HttpContext.Current.Request.Form[varName].ToString();
            }
            return str;
        }

        public static string GetQ(string varName)
        {
            string str = "";
            if (HttpContext.Current.Request.QueryString[varName] != null)
            {
                str = HttpContext.Current.Request.QueryString[varName].ToString();
            }
            return str;
        }
    }
}

